package com.luoqiu.yygh.controller;

import com.luoqiu.yygh.common.result.Result;
import com.luoqiu.yygh.service.HospitalService;
import com.luoqiu.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/admin/hosp/hospital")
public class HospitalController {

    @Autowired
    private HospitalService hospitalService;

    @GetMapping(value = "/list/{page}/{limit}")
    public Result<Object> page(@PathVariable long page, @PathVariable long limit, HospitalQueryVo queryVo) {
        Object o =hospitalService.selectPage(page, limit, queryVo);
        return Result.ok(o);
    }

}
